const util = {
    noRepeat: function(arr) {
        return arr.filter((item, index) => {
            return arr.indexOf(item) === index;
        });
    },
    add: function(arr) {
        return arr.reduce((a, b) => {
            return a + b;
        });
    }
};
module.exports = util;
